package com.fzkj.shejimoshi.facade;

/**
 * @DESCRIPTION: TODO 外观类，提供统一的方法调用，封装内部逻辑
 * @AUTHOR: AnotherOne
 * @DATE: 2021/8/16 16:10
 */
public class ShapeMaker {
    Circle circle;
    Rectangle rectangle;
    Square square;

    public ShapeMaker(){
        this.circle = new Circle();
        this.rectangle = new Rectangle();
        this.square = new Square();
    }

    public void drawCircle(){
        circle.draw();
    }
    public void drawRectangle(){
        rectangle.draw();
    }
    public void drawSquare(){
        square.draw();
    }
}
